<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnUpdatedInOauthDeviceTable extends AbstractMigration
{
    public function up()
    {
        $this->table('oauth_device')
            ->addColumn('updated', 'integer', ['limit' => 11, 'default' => 0, 'null' => false, 'signed' => false])->save();
    }

    public function down()
    {
        $this->table('oauth_device')->removeColumn('updated')->save();
    }
}
